package com.zycfc.zsf.boot.distributedlock.zk.listener;

import org.I0Itec.zkclient.*;
import java.util.concurrent.*;
import com.zycfc.zsf.boot.util.text.*;

public class ZkLockDataListener implements IZkDataListener
{
    private CountDownLatch latch;
    
    public ZkLockDataListener(final CountDownLatch latch) {
        this.latch = latch;
    }
    
    public void handleDataDeleted(final String dataPath) throws Exception {
        if (CheckUtil.isNotNull((Object)this.latch)) {
            this.latch.countDown();
        }
    }
    
    public void handleDataChange(final String dataPath, final Object data) throws Exception {
    }
}
